package com.yootk.aware;

import com.yootk.aware.impl.YootkDataBase;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class AwareDataConfig {
    @Bean
    public DataBaseConfig dataBaseConfig(){
        DataBaseConfig config = new DataBaseConfig() ;
        config.setName("sun xian");
        config.setUrl("张三李四");
        return config ;
    }
    @Bean
    public IDataBaseAware dataBaseAware(){
        return new YootkDataBase() ;
    }
    @Bean
    public DataBaseAwareBeanPostProcessor beanPostProcessor(){
        return new DataBaseAwareBeanPostProcessor() ;
    }
}
